package b.h.z.vo;

import b.h.z.utils.Utils;

public class Column {
	private String tabName, className;
	private String colName, attrName;
	private String colDesc, attrDesc;
	private String javaType, xmlType;
	private String colLen, attrLen;
	private String nullAble, attrNullAble;
	private String getMethodName, setMethodName;

	public String getTabName() {
		return tabName;
	}

	public void setTabName(String tabName) {
		this.className = Utils.getClassName(tabName);
		this.tabName = tabName;
	}

	public String getClassName() {
		return className;
	}

	public String getColName() {
		return colName;
	}

	public void setColName(String colName) {
		this.attrName = Utils.getAttributeName(colName);
		this.getMethodName = "get" + Utils.firstCharToUpper(this.attrName);
		this.setMethodName = "set" + Utils.firstCharToUpper(this.attrName);
		this.colName = colName;
	}

	public String getSetMethodName() {
		return setMethodName;
	}

	public String getGetMethodName() {
		return getMethodName;
	}

	public String getColDesc() {
		return colDesc;
	}

	public void setColDesc(String colDesc) {
		this.attrDesc = colDesc;
		this.colDesc = colDesc;
	}

	public String getColLen() {
		return colLen;
	}

	public void setColLen(String colLen) {
		this.attrLen = colLen;
		this.colLen = colLen;
	}

	public String getNullAble() {
		return nullAble;
	}

	public void setNullAble(String nullAble) {
		this.attrNullAble = Utils.checkNull(nullAble);
		this.nullAble = nullAble;
	}

	public String getAttrName() {
		return attrName;
	}

	public String getAttrDesc() {
		return attrDesc;
	}

	public String getAttrLen() {
		return attrLen;
	}

	public String getAttrNullAble() {
		return attrNullAble;
	}

	public String getJavaType() {
		return javaType;
	}

	public void setJavaType(String javaType) {
		this.javaType = Utils.getJavaType(javaType);
	}

	public String getXmlType() {
		return xmlType;
	}

	public void setXmlType(String xmlType) {
		this.xmlType = Utils.getXmlType(xmlType);
	}
	
	
}
